In this paper, we made a detailed introduction to the principle and implementation of the error correcting code and designed two error correcting code encoding of different fields in encoding procedure of two-dimensional character barcode. 本文对该纠错码的原理和实现进行了详细说明,且在字符二维码的编码过程中设计了两次不同域的纠错编码。